package com.example.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.R;
import com.example.system.entity.Order;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDate;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王鹤蒲
 * @since 2024-02-03
 */
public interface IOrderService extends IService<Order> {

    public R createOrder(Order order) throws ClassNotFoundException;

    public void sendMailReminder(String email,String subject,String message);

    public R selectAll(int currentPage, int pageSize, String orderNo, String status, String type, String createBy, LocalDate createDate);

    public R selectOrderDetail(String orderNo);

    public R cancelOrder(String orderNo);

    public R cancelBatch(String [] orderNoList);

    public R deletelOrder( String orderNo);

    public R deleteBatch(String [] orderNoList);

    public R findPatientOrderList(int currentPage,int pageSize,Integer userId,String orderDate,String status);

    public R findOrderDetailListByPage(int currentPage, int pageSize,Integer userId, String workDate, String status);

    public R serviceEvaluation(String orderNo,Integer rate,String feedback);
}
